// 权限组 权限相关
import request from "@/utils/https/requests";
// 列表
export function groupRightsList(data: any) {
  return request({
    url: "/groupRights/list",
    method: "post",
    data,
  });
}
// 添加
export function postAddGroupRights(data: any) {
  return request({
    url: "/groupRights/postAdd",
    method: "post",
    data,
  });
}
// 修改
export function postModGroupRights(data: any) {
  return request({
    url: `/groupRights/postMod/${data.id}`,
    method: "post",
    data,
  });
}
// 详情
export function groupRightsDetail(id: string) {
  return request({
    url: `/groupRights/detail/${id}`,
    method: "post",
  });
}
// 删除
export function postDeleteGroupRights(id: string) {
  return request({
    url: `/groupRights/postDelete/${id}`,
    method: "post",
  });
}
